package itsm.isperp.control.form.table;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

/**
 * 
 * 一个节点的cell元件
 * 
 * @author lizx
 * @date 2013-11-8
 * @since 1.0
 * 
 */
public class TreenodeCell extends NormalTreenodeCell {

	List<String> includeCalculateFormulas = new ArrayList<>();

	public List<String> getIncludeCalculateFormulas() {
		return includeCalculateFormulas;
	}

	public void setIncludeCalculateFormulas(
			List<String> includeCalculateFormulas) {
		this.includeCalculateFormulas = includeCalculateFormulas;
	}

	public void addCalculateFormula(String calculateFormula, String code) {
		if (StringUtils.isEmpty(calculateFormula)) {

			this.includeCalculateFormulas.add(code);
		} else {
			this.includeCalculateFormulas.add(calculateFormula);
		}
	}
}
